//
//  AboutViewController.m
//  PlayBall
//
//  Created by Huawen Liu on 12-7-25.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddAboutViewController.h"

@implementation JddAboutViewController

SHARED_VIEW_CONTROLLER_IMPLEMENT(JddAboutViewController)



-(IBAction)callNum1:(id)sender{
    NSString *phoneNum = @"051262870830";// 电话号码
    
    NSURL *phoneURL = [NSURL URLWithString:[NSString stringWithFormat:@"tel:%@",phoneNum]];  
    
    if ( !phoneCallWebView ) {          
        
        phoneCallWebView = [[UIWebView alloc] initWithFrame:CGRectZero];//         
    } 
    
    [phoneCallWebView loadRequest:[NSURLRequest requestWithURL:phoneURL]];
}

-(IBAction)callNum2:(id)sender{
    NSString *phoneNum = @"051262870835";// 电话号码
    
    NSURL *phoneURL = [NSURL URLWithString:[NSString stringWithFormat:@"tel:%@",phoneNum]];
    
    if ( !phoneCallWebView ) {
        
        phoneCallWebView = [[UIWebView alloc] initWithFrame:CGRectZero];//
    }
    
    [phoneCallWebView loadRequest:[NSURLRequest requestWithURL:phoneURL]];
}

-(IBAction)callNum3:(id)sender{
    NSString *phoneNum = @"4006570561";// 电话号码
    
    NSURL *phoneURL = [NSURL URLWithString:[NSString stringWithFormat:@"tel:%@",phoneNum]];  
    
    if ( !phoneCallWebView ) {          
        
        phoneCallWebView = [[UIWebView alloc] initWithFrame:CGRectZero];        
    } 
    
    [phoneCallWebView loadRequest:[NSURLRequest requestWithURL:phoneURL]];
}

- (void)viewDidLoad
{
    [super viewDidLoad];    
    [self.navigationItem setTitle:PAGE_CONTACT_US];
    
}
- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    [MobClick beginLogPageView:@"More-contact"];
    
}
- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    [MobClick endLogPageView:@"More-contact"];
}
@end